#ifndef DEFRAGMENTER_H_
#define DEFRAGMENTER_H_
#include "../Managers/BookManager.h"
#include "../Managers/VarFileManager.h"
#include "../Entities/Record.h"
#include "../Entities/Hash/ExtensibleHash.h"
#include "../Commons/Utils.h"

using namespace Managers;

class Defragmenter {
public:
	Defragmenter();
	void defragment();
	vector<Record*>* getRecordsWord(vector<int>* words);
	vector<Record*>* getRecordsTitle(vector<int>* titles);
	virtual ~Defragmenter();

private:
	BookManager* bookManager;
};

#endif /* DEFRAGMENTER_H_ */
